import { $get, $delete } from '@js/request'
import { ServiceTopicSchema } from '@components/schema/service'

export async function getTopicListRequest (caseid: string): Promise<ServiceTopicSchema[]> {
  const res = await $get('/api/commission/delivertopic', {
    caseid
  })
  return res.data
}

export async function delTopicRequest (id: string) {
  const res = await $delete(`/api/commission/delivertopic/${id}`)
  return res.data
}